2-Wire SPI ISO Click example
Description
This example demonstrates the use of a 2-Wire SPI ISO Click board by showing the communication between the two Click boards (Slave and Master). That is performed by sending commands to a 2-Wire SPI ISO Click (Slave) to read the device ID of a Accel 22 Click board connected to the 2-Wire SPI ISO Click (Master).
The demo application is composed of two sections :
Application Init
Initializes the driver and performs the Click default configuration.
Application Task
Reads and checks the device ID of a Accel 22 Click board connected to the 2-Wire SPI ISO (Master) Click, and displays the results on the USB UART approximately once per second.
- Note
- The communication topology is as follows: MCU <-> 2-Wire SPI ISO Click (Slave) <-> 2-Wire SPI ISO Click (Master) <-> Accel 22 Click The Master/Slave selection is done via on-board SMD jumpers. The Master Click board must be powered up with a 3V3 and 5V power supply externally. Also the DIS must be pulled down on Master Click board to enable the device.
- Author
- Stefan Filipovic